import Vue from 'vue'
import Router from 'vue-router'
import Layout from '../view/layout/Index'
import Login from '../view/basic/my_index'
import Login4 from '../view/login/Login4'
import My_index from '../view/basic/my_index'
// 引进路由
import  Beer from "../view/basic/Beer"
import Cocktail from "../view/basic/Cocktail";
import Coke from "../view/basic/Coke";
import Dou from "../view/basic/Dou";
import Snack from "../view/basic/Snack";
import Wines from "../view/basic/Wines";
import Lxt_page from "../view/basic/lxt_page" ;
import Cjf_page from "../view/basic/cjf_page" ;
import Cjx_page from "../view/basic/cjx_page" ;
import Wk_page from "../view/basic/wk_page" ;


Vue.use(Router)

export default new Router({
  routes: [

    {
      path: '/',
      name: 'Login',
      component: Login
    },
    {
      path: '/login4',
      name: 'Login4',
      component: Login4
    },

    {
      path: '/layout',
      name: 'Layout',
      component: Layout,
      children: [

      ]
    },
    {
      path:'/basic/my_index',
      name:'My_index' ,
      component:My_index
    },
    {
      path:'/Beer',
      name:'Beer',
      component:Beer
    },
    {
      path:'/Cocktail',
      name:'Cocktail',
      component:Cocktail
    },
    {
      path:'/Coke',
      name:'Coke',
      component:Coke
    },
    {
      path:'/Dou',
      name:'Dou',
      component:Dou
    },
    {
      path:'/Snack',
      name:'Snack',
      component:Snack
    },
    {
      path:'/Wines',
      name:'Wines',
      component:Wines
    } ,
    {
      path: '/layout',
      name: 'Layout',
      component: Layout,
      children: [
        {
          path: '/lxt',
          name: 'lxt',
          component: Lxt_page
        } ,
        {
          path:'/cjf' ,
          name:'cjf' ,
          component:Cjf_page
        } ,
        {
          path:'/cjx' ,
          name:'cjx' ,
          component:Cjx_page
        } ,
        {
          path:'/wk' ,
          name:'wk' ,
          component:Wk_page
        }
      ]
    },





  ]
})
